﻿namespace WMS6.Web.OrderDetailMgtServiceRef
{
    using System;
    using System.CodeDom.Compiler;
    using System.ComponentModel;
    using System.Diagnostics;
    using System.Runtime.CompilerServices;
    using System.Runtime.Serialization;

    [Serializable, DataContract(Name="PurchaseOrderDetailInfo", Namespace="http://schemas.datacontract.org/2004/07/WMS6.DataEntity"), DebuggerStepThrough, GeneratedCode("System.Runtime.Serialization", "3.0.0.0")]
    public class PurchaseOrderDetailInfo : IExtensibleDataObject, INotifyPropertyChanged
    {
        [OptionalField]
        private decimal AdjustedQtyField;
        [OptionalField]
        private string AltSkuIDField;
        [OptionalField]
        private string CreatedByField;
        [OptionalField]
        private DateTime CreatedDateField;
        [NonSerialized]
        private ExtensionDataObject extensionDataField;
        [OptionalField]
        private string ExternalLineIDField;
        [OptionalField]
        private string ExternalPoIDField;
        [OptionalField]
        private int LineIDField;
        [OptionalField]
        private decimal OrderedQtyField;
        [OptionalField]
        private string OwnerIDField;
        [OptionalField]
        private string PackIDField;
        [OptionalField]
        private string PoIDField;
        [OptionalField]
        private string QcAutoAdjustField;
        [OptionalField]
        private string QcRequiredField;
        [OptionalField]
        private decimal ReceivedQtyField;
        [OptionalField]
        private decimal RejectedQtyField;
        [OptionalField]
        private string RemarkField;
        [OptionalField]
        private int RowIDField;
        [OptionalField]
        private string SkuDescField;
        [OptionalField]
        private string SkuIDField;
        [OptionalField]
        private string StatusDField;
        [OptionalField]
        private string StatusField;
        [OptionalField]
        private double TotalCubeField;
        [OptionalField]
        private double TotalGrossWeightField;
        [OptionalField]
        private double TotalNetWeightField;
        [OptionalField]
        private double TotalPriceField;
        [OptionalField]
        private byte[] TsField;
        [OptionalField]
        private string Udf10Field;
        [OptionalField]
        private string Udf1Field;
        [OptionalField]
        private string Udf2Field;
        [OptionalField]
        private string Udf3Field;
        [OptionalField]
        private string Udf4Field;
        [OptionalField]
        private string Udf5Field;
        [OptionalField]
        private string Udf6Field;
        [OptionalField]
        private string Udf7Field;
        [OptionalField]
        private string Udf8Field;
        [OptionalField]
        private string Udf9Field;
        [OptionalField]
        private double UnitPriceField;
        [OptionalField]
        private string UomIDField;
        [OptionalField]
        private string UpdatedByField;
        [OptionalField]
        private DateTime UpdatedDateField;
        [OptionalField]
        private string WhIDField;

        public event PropertyChangedEventHandler PropertyChanged;

        protected void RaisePropertyChanged(string propertyName)
        {
            PropertyChangedEventHandler propertyChanged = this.PropertyChanged;
            if (propertyChanged != null)
            {
                propertyChanged(this, new PropertyChangedEventArgs(propertyName));
            }
        }

        [DataMember]
        public decimal AdjustedQty
        {
            get
            {
                return this.AdjustedQtyField;
            }
            set
            {
                if (!this.AdjustedQtyField.Equals(value))
                {
                    this.AdjustedQtyField = value;
                    this.RaisePropertyChanged("AdjustedQty");
                }
            }
        }

        [DataMember]
        public string AltSkuID
        {
            get
            {
                return this.AltSkuIDField;
            }
            set
            {
                if (!object.ReferenceEquals(this.AltSkuIDField, value))
                {
                    this.AltSkuIDField = value;
                    this.RaisePropertyChanged("AltSkuID");
                }
            }
        }

        [DataMember]
        public string CreatedBy
        {
            get
            {
                return this.CreatedByField;
            }
            set
            {
                if (!object.ReferenceEquals(this.CreatedByField, value))
                {
                    this.CreatedByField = value;
                    this.RaisePropertyChanged("CreatedBy");
                }
            }
        }

        [DataMember]
        public DateTime CreatedDate
        {
            get
            {
                return this.CreatedDateField;
            }
            set
            {
                if (!this.CreatedDateField.Equals(value))
                {
                    this.CreatedDateField = value;
                    this.RaisePropertyChanged("CreatedDate");
                }
            }
        }

        [Browsable(false)]
        public ExtensionDataObject ExtensionData
        {
            get
            {
                return this.extensionDataField;
            }
            set
            {
                this.extensionDataField = value;
            }
        }

        [DataMember]
        public string ExternalLineID
        {
            get
            {
                return this.ExternalLineIDField;
            }
            set
            {
                if (!object.ReferenceEquals(this.ExternalLineIDField, value))
                {
                    this.ExternalLineIDField = value;
                    this.RaisePropertyChanged("ExternalLineID");
                }
            }
        }

        [DataMember]
        public string ExternalPoID
        {
            get
            {
                return this.ExternalPoIDField;
            }
            set
            {
                if (!object.ReferenceEquals(this.ExternalPoIDField, value))
                {
                    this.ExternalPoIDField = value;
                    this.RaisePropertyChanged("ExternalPoID");
                }
            }
        }

        [DataMember]
        public int LineID
        {
            get
            {
                return this.LineIDField;
            }
            set
            {
                if (!this.LineIDField.Equals(value))
                {
                    this.LineIDField = value;
                    this.RaisePropertyChanged("LineID");
                }
            }
        }

        [DataMember]
        public decimal OrderedQty
        {
            get
            {
                return this.OrderedQtyField;
            }
            set
            {
                if (!this.OrderedQtyField.Equals(value))
                {
                    this.OrderedQtyField = value;
                    this.RaisePropertyChanged("OrderedQty");
                }
            }
        }

        [DataMember]
        public string OwnerID
        {
            get
            {
                return this.OwnerIDField;
            }
            set
            {
                if (!object.ReferenceEquals(this.OwnerIDField, value))
                {
                    this.OwnerIDField = value;
                    this.RaisePropertyChanged("OwnerID");
                }
            }
        }

        [DataMember]
        public string PackID
        {
            get
            {
                return this.PackIDField;
            }
            set
            {
                if (!object.ReferenceEquals(this.PackIDField, value))
                {
                    this.PackIDField = value;
                    this.RaisePropertyChanged("PackID");
                }
            }
        }

        [DataMember]
        public string PoID
        {
            get
            {
                return this.PoIDField;
            }
            set
            {
                if (!object.ReferenceEquals(this.PoIDField, value))
                {
                    this.PoIDField = value;
                    this.RaisePropertyChanged("PoID");
                }
            }
        }

        [DataMember]
        public string QcAutoAdjust
        {
            get
            {
                return this.QcAutoAdjustField;
            }
            set
            {
                if (!object.ReferenceEquals(this.QcAutoAdjustField, value))
                {
                    this.QcAutoAdjustField = value;
                    this.RaisePropertyChanged("QcAutoAdjust");
                }
            }
        }

        [DataMember]
        public string QcRequired
        {
            get
            {
                return this.QcRequiredField;
            }
            set
            {
                if (!object.ReferenceEquals(this.QcRequiredField, value))
                {
                    this.QcRequiredField = value;
                    this.RaisePropertyChanged("QcRequired");
                }
            }
        }

        [DataMember]
        public decimal ReceivedQty
        {
            get
            {
                return this.ReceivedQtyField;
            }
            set
            {
                if (!this.ReceivedQtyField.Equals(value))
                {
                    this.ReceivedQtyField = value;
                    this.RaisePropertyChanged("ReceivedQty");
                }
            }
        }

        [DataMember]
        public decimal RejectedQty
        {
            get
            {
                return this.RejectedQtyField;
            }
            set
            {
                if (!this.RejectedQtyField.Equals(value))
                {
                    this.RejectedQtyField = value;
                    this.RaisePropertyChanged("RejectedQty");
                }
            }
        }

        [DataMember]
        public string Remark
        {
            get
            {
                return this.RemarkField;
            }
            set
            {
                if (!object.ReferenceEquals(this.RemarkField, value))
                {
                    this.RemarkField = value;
                    this.RaisePropertyChanged("Remark");
                }
            }
        }

        [DataMember]
        public int RowID
        {
            get
            {
                return this.RowIDField;
            }
            set
            {
                if (!this.RowIDField.Equals(value))
                {
                    this.RowIDField = value;
                    this.RaisePropertyChanged("RowID");
                }
            }
        }

        [DataMember]
        public string SkuDesc
        {
            get
            {
                return this.SkuDescField;
            }
            set
            {
                if (!object.ReferenceEquals(this.SkuDescField, value))
                {
                    this.SkuDescField = value;
                    this.RaisePropertyChanged("SkuDesc");
                }
            }
        }

        [DataMember]
        public string SkuID
        {
            get
            {
                return this.SkuIDField;
            }
            set
            {
                if (!object.ReferenceEquals(this.SkuIDField, value))
                {
                    this.SkuIDField = value;
                    this.RaisePropertyChanged("SkuID");
                }
            }
        }

        [DataMember]
        public string Status
        {
            get
            {
                return this.StatusField;
            }
            set
            {
                if (!object.ReferenceEquals(this.StatusField, value))
                {
                    this.StatusField = value;
                    this.RaisePropertyChanged("Status");
                }
            }
        }

        [DataMember]
        public string StatusD
        {
            get
            {
                return this.StatusDField;
            }
            set
            {
                if (!object.ReferenceEquals(this.StatusDField, value))
                {
                    this.StatusDField = value;
                    this.RaisePropertyChanged("StatusD");
                }
            }
        }

        [DataMember]
        public double TotalCube
        {
            get
            {
                return this.TotalCubeField;
            }
            set
            {
                if (!this.TotalCubeField.Equals(value))
                {
                    this.TotalCubeField = value;
                    this.RaisePropertyChanged("TotalCube");
                }
            }
        }

        [DataMember]
        public double TotalGrossWeight
        {
            get
            {
                return this.TotalGrossWeightField;
            }
            set
            {
                if (!this.TotalGrossWeightField.Equals(value))
                {
                    this.TotalGrossWeightField = value;
                    this.RaisePropertyChanged("TotalGrossWeight");
                }
            }
        }

        [DataMember]
        public double TotalNetWeight
        {
            get
            {
                return this.TotalNetWeightField;
            }
            set
            {
                if (!this.TotalNetWeightField.Equals(value))
                {
                    this.TotalNetWeightField = value;
                    this.RaisePropertyChanged("TotalNetWeight");
                }
            }
        }

        [DataMember]
        public double TotalPrice
        {
            get
            {
                return this.TotalPriceField;
            }
            set
            {
                if (!this.TotalPriceField.Equals(value))
                {
                    this.TotalPriceField = value;
                    this.RaisePropertyChanged("TotalPrice");
                }
            }
        }

        [DataMember]
        public byte[] Ts
        {
            get
            {
                return this.TsField;
            }
            set
            {
                if (!object.ReferenceEquals(this.TsField, value))
                {
                    this.TsField = value;
                    this.RaisePropertyChanged("Ts");
                }
            }
        }

        [DataMember]
        public string Udf1
        {
            get
            {
                return this.Udf1Field;
            }
            set
            {
                if (!object.ReferenceEquals(this.Udf1Field, value))
                {
                    this.Udf1Field = value;
                    this.RaisePropertyChanged("Udf1");
                }
            }
        }

        [DataMember]
        public string Udf10
        {
            get
            {
                return this.Udf10Field;
            }
            set
            {
                if (!object.ReferenceEquals(this.Udf10Field, value))
                {
                    this.Udf10Field = value;
                    this.RaisePropertyChanged("Udf10");
                }
            }
        }

        [DataMember]
        public string Udf2
        {
            get
            {
                return this.Udf2Field;
            }
            set
            {
                if (!object.ReferenceEquals(this.Udf2Field, value))
                {
                    this.Udf2Field = value;
                    this.RaisePropertyChanged("Udf2");
                }
            }
        }

        [DataMember]
        public string Udf3
        {
            get
            {
                return this.Udf3Field;
            }
            set
            {
                if (!object.ReferenceEquals(this.Udf3Field, value))
                {
                    this.Udf3Field = value;
                    this.RaisePropertyChanged("Udf3");
                }
            }
        }

        [DataMember]
        public string Udf4
        {
            get
            {
                return this.Udf4Field;
            }
            set
            {
                if (!object.ReferenceEquals(this.Udf4Field, value))
                {
                    this.Udf4Field = value;
                    this.RaisePropertyChanged("Udf4");
                }
            }
        }

        [DataMember]
        public string Udf5
        {
            get
            {
                return this.Udf5Field;
            }
            set
            {
                if (!object.ReferenceEquals(this.Udf5Field, value))
                {
                    this.Udf5Field = value;
                    this.RaisePropertyChanged("Udf5");
                }
            }
        }

        [DataMember]
        public string Udf6
        {
            get
            {
                return this.Udf6Field;
            }
            set
            {
                if (!object.ReferenceEquals(this.Udf6Field, value))
                {
                    this.Udf6Field = value;
                    this.RaisePropertyChanged("Udf6");
                }
            }
        }

        [DataMember]
        public string Udf7
        {
            get
            {
                return this.Udf7Field;
            }
            set
            {
                if (!object.ReferenceEquals(this.Udf7Field, value))
                {
                    this.Udf7Field = value;
                    this.RaisePropertyChanged("Udf7");
                }
            }
        }

        [DataMember]
        public string Udf8
        {
            get
            {
                return this.Udf8Field;
            }
            set
            {
                if (!object.ReferenceEquals(this.Udf8Field, value))
                {
                    this.Udf8Field = value;
                    this.RaisePropertyChanged("Udf8");
                }
            }
        }

        [DataMember]
        public string Udf9
        {
            get
            {
                return this.Udf9Field;
            }
            set
            {
                if (!object.ReferenceEquals(this.Udf9Field, value))
                {
                    this.Udf9Field = value;
                    this.RaisePropertyChanged("Udf9");
                }
            }
        }

        [DataMember]
        public double UnitPrice
        {
            get
            {
                return this.UnitPriceField;
            }
            set
            {
                if (!this.UnitPriceField.Equals(value))
                {
                    this.UnitPriceField = value;
                    this.RaisePropertyChanged("UnitPrice");
                }
            }
        }

        [DataMember]
        public string UomID
        {
            get
            {
                return this.UomIDField;
            }
            set
            {
                if (!object.ReferenceEquals(this.UomIDField, value))
                {
                    this.UomIDField = value;
                    this.RaisePropertyChanged("UomID");
                }
            }
        }

        [DataMember]
        public string UpdatedBy
        {
            get
            {
                return this.UpdatedByField;
            }
            set
            {
                if (!object.ReferenceEquals(this.UpdatedByField, value))
                {
                    this.UpdatedByField = value;
                    this.RaisePropertyChanged("UpdatedBy");
                }
            }
        }

        [DataMember]
        public DateTime UpdatedDate
        {
            get
            {
                return this.UpdatedDateField;
            }
            set
            {
                if (!this.UpdatedDateField.Equals(value))
                {
                    this.UpdatedDateField = value;
                    this.RaisePropertyChanged("UpdatedDate");
                }
            }
        }

        [DataMember]
        public string WhID
        {
            get
            {
                return this.WhIDField;
            }
            set
            {
                if (!object.ReferenceEquals(this.WhIDField, value))
                {
                    this.WhIDField = value;
                    this.RaisePropertyChanged("WhID");
                }
            }
        }
    }
}

